﻿using Iot.Shared.Enums;
using Iot.Shared.Path;

namespace Iot.Shared.Model;

/// <summary>
///     告警量数据模型
/// </summary>
public record SwitchBusModel : BusModel<Switching?>
{
    public SwitchBusModel(DevicePath path, Switching? data, string? additional = null) : base(path, data)
    {
        Additional = additional ?? string.Empty;
    }

    /// <summary>
    ///     告警量 附加数据
    /// </summary>
    public string Additional { get; }
}